package com.example.crm.servlet;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

@WebServlet("/forUpdateServlet")
public class ForUpdateServlet extends HttpServlet {
    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        long id=Long.parseLong(req.getParameter("cust_id"));
        System.out.println(id);
        req.setAttribute("id",id);
        req.getRequestDispatcher("/WEB-INF/jsp/customer/edit.jsp").forward(req, resp);
    }
}
